function checkForm ( form )
{
	var numElement = form.length;

 
  for(var i=0; i<numElement; i++)
	{
		var ele = form.elements[i];
		var eleName = ele.name;
		var eleType = ele.type;
		var eleVal	= ele.value;
		var eleClass = ele.className;
		
		if(eleClass == "require")
		if(eleType =="text" || eleType=="textarea" || eleType=="password")
			  if (eleVal == "" )
				{
					ele.focus();
					//alert(eleClass);
					return false ;
				}
		}

  return true ;
}

function checkPassword ( pass, repass )
{
	var passVal1 = pass.value;
	var passVal2 = repass.value;
	//alert(passVal1);
	if(passVal1 != passVal2) 
	{
		pass.focus();
		return false;
	}
	else return true ;
}
